/*
 * @Author: liyongxuan
 * @Date: 2018-1-10 10:37:42
 * @Last Modified by: liyongxuan
 * @Last Modified time: 2018-1-10 10:37:42
 * @description 审批流程组件
 */
export const api = {
  // 审批流-查询审批列表
  GET_ITEM_APPROVAL_ENTITY: {
    url: '/itemApprovalEntity',
    method: 'get'
  },
  // 审批流-发起审批
  POST_ITEM_APPROVAL_ENTITY: {
    url: '/itemApprovalEntity',
    method: 'post'
  },
  // 审批流-审批
  PUT_ITEM_APPROVAL_ENTITY: {
    url: '/itemApprovalEntity',
    method: 'put'
  },
  // 审批流-查询审批历史时间
  GET_ITEM_APPROVAL_ENTITY_TIME: {
    url: '/itemApprovalEntity/{itemId}/{type}',
    method: 'get'
  },
  // 删除文件
  DELETE_FILE: {
      url: '/file',
      method: 'delete'
  },
  // 审批流-查询是否有权限发起审批
  GET_HAS_POWER_CREATE_APPROVAL: {
    url: '/sys/hasPowerCreateApproval',
    method: 'get'
},
}
